package cn.steam.dao;

import cn.steam.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhang jintao on 2022/05/02
 **/
@Repository
public interface RoleDao extends JpaRepository<Role, Integer> {

    List<Role> findAllByRoleCodeIn(List<String> roleCodes);

}
